Platform Explorer / Nuxeo Platform 6.0

Component org.nuxeo.ecm.platform.routing.layouts.summary

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.routing.layouts.summary">

  <extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
    point="widgettypes">
    <widgetType name="summary_document_route">
      <configuration>
        <sinceVersion>5.6</sinceVersion>
        <title>Workflow Process</title>
        <description>
          <p>
            If there is no route started on the current document, this widget
            displays a form to select and launch a workflow.
          </p>
          <p>
            If there is already a route started, it displays the name of
            the started route.
          </p>
        </description>
        <handlingLabels>true</handlingLabels>
        <categories>
          <category>summary</category>
        </categories>
        <supportedModes>
          <mode>view</mode>
        </supportedModes>
        <!-- no configurable properties -->
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">
        /widgets/summary/document_route_widget_template.xhtml
      </property>
    </widgetType>
  </extension>

  <extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
    point="widgets">

    <widget name="summary_document_route" type="summary_document_route">
      <labels>
        <label mode="any"></label>
      </labels>
      <controls mode="any">
        <control name="requireSurroundingForm">true</control>
        <control name="handleLabels">true</control>
      </controls>
    </widget>

    <widget name="start_route_widget" type="template">
      <labels>
        <label mode="any"></label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>relatedRouteModelDocumentId</field>
      </fields>
      <properties mode="any">
        <property name="template">
          /widgets/start_route_widget_template.xhtml
        </property>
      </properties>
      <properties widgetMode="edit">
        <property name="cssStyleClass">dataInputText</property>
      </properties>
      <controls mode="any">
        <control name="requireSurroundingForm">true</control>
        <control name="disableMultiPartForm">true</control>
      </controls>
    </widget>

  </extension>

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="actions">

    <action id="summary_document_route" type="widget" order="250">
      <category>SUMMARY_PANEL_RIGHT</category>
      <properties>
        <property name="widgetName">summary_document_route</property>
      </properties>
    </action>

  </extension>
</component>